package com.zhj.micro.order.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.zhj.micro.order.entity.dto.OrderDTO;

public interface OrderService {

    /**
     * 创建订单
     * @param orderDTO
     * @return
     */
    String createOrder(OrderDTO orderDTO);

    /**
     * 修改订单状态为失败
     * @param orderId
     * @return
     */
    boolean updateOrderStatus(String orderId, Integer status);

    /**
     * 检查订单状态
     * @param orderId
     * @return
     */
    boolean checkOrder(String orderId);

    /**
     * 支付订单
     * @param orderId
     * @return
     */
    boolean payOrder(String orderId) throws JsonProcessingException;
}
